package com.trxy.hotelsystem.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.trxy.hotelsystem.dao.floorMapper;
import com.trxy.hotelsystem.model.floor;
import com.trxy.hotelsystem.service.Floorservice;

@Service
public class FloorserviceImpl implements Floorservice{
	
	@Autowired
	private floorMapper floormapper;

	@Override
	public List<floor> queryFloorAll() {
		// TODO Auto-generated method stub
		return floormapper.queryFloorAll();
	}

	@Override
	public int deleteFloor(String floor) {
		// TODO Auto-generated method stub
		return floormapper.deleteFloor(floor);
	}

	@Override
	public int insertFloor(floor floor) {
		// TODO Auto-generated method stub
		return floormapper.insertSelective(floor);
	}

}
